<!DOCTYPE html>
<html lang="en">
<head>
    <link rel="shortcut icon" href="<?php echo $site_ico;?>" mce_href="<?php echo $site_ico ;?>" type="image/x-icon">
    <title><?php echo $seo['title'];?></title>
    <?php if(isset($seo['keywords'])):?>
        <meta name="keywords" content="<?php echo $seo['keywords'];?>" />
    <?php endif;?>
    <?php if(isset($seo['desc'])):?>
        <meta name="description" content="<?php echo $seo['desc'];?>" />
    <?php endif;?>
    <link rel="canonical" href="<?php echo current_url();?>" />
    <?php $this->load->module('index/index/page_header');?>
</head>
<body>
<!--头部-->
<div class="header">
    <div class="header-top">
        <div class="header-top-container">
            <div class="header-top-container-left">
                <?php if(isset($site['welcome_text'])){?><div style="float: left;height: 31px;line-height: 31px;margin-right:15px;"><?php echo $site['welcome_text'];?></div><?php }?>
            </div>
            <div class="header-top-container-right" >
                <span id="js-login-wrap">
                <a href="<?php echo site_url('denglu');?>" rel="nofollow">登陆&nbsp; &nbsp;</a>
                <a href="<?php echo site_url('zhuce');?>" rel="nofollow">免费注册&nbsp; &nbsp;</a>
                </span>
                <a href="<?php echo site_url('help');?>">帮助</a>
            </div>
        </div>
    </div>
    <div class="top-bar">
        <div class="logo" style="height:75px">
            <a href="<?php echo site_url("")?>"><img height="75" alt="<?php echo @$site['sitename'];?>" src="<?php echo $sitelogo ;?>" onerror="this.error=null;this.src='<?php echo URLPRE;?>static/public/images/nologo.jpg'" /></a>
        </div>
        <div class="location">
            <i class="fa fa-map-marker"></i><span><?php echo SITEDISTRICTNAME ? SITEDISTRICTNAME : SITE_CITYNAME_NO_DIS; ?></span>&nbsp;<i class="fa fa-caret-down idown"></i>
            <div class="top-city-choice">
                <div class="top-city-hot">
                    <dl>
                        <dt>热门出发城市</dt>
                        <dd><a href="#">北京</a></dd>
                        <dd><a href="#">上海</a></dd>
                        <dd><a href="#">杭州</a></dd>
                        <dd><a href="#">厦门</a></dd>
                        <dd><a href="#">成都</a></dd>
                        <dd><a href="#">深圳</a></dd>
                        <dd><a href="#">广州</a></dd>
                        <dd><a href="#">沈阳</a></dd>
                        <dd><a href="#">武汉</a></dd>
                        <dd><a href="#">香港</a></dd>
                        <dd><a href="#">台北</a></dd>
                    </dl>
                </div>
                <div class="top-city-pinyin">
                </div>
                <div class="top-city-list">
                    <dl>
                        <dt>A</dt>
                        <dd>
                            <a href="#">安庆</a>
                            <a href="#">鞍山</a>
                            <a href="#">安阳</a>
                        </dd>
                    </dl>
                    <dl>
                        <dt>B</dt>
                        <dd>
                            <a href="#">北京</a>
                            <a href="#">宝鸡</a>
                            <a href="#">包头</a>
                            <a href="#">蚌埠</a>
                            <a href="#">保定</a>
                            <a href="#">北海</a>
                            <a href="#">濠州</a>
                            <a href="#">本溪</a>
                            <a href="#">滨州</a>
                        </dd>
                    </dl>
                </div>
            </div>
            <div class="top-city-blank"></div>
        </div>
        <!--搜索框-->
        <div class="index-search">
            <div class="search-box">
                <form action="<?php echo site_url('search/list-0-0-0-0-0-0-0-');?>" name="search_form" method="post">
                    <input type="search" placeholder="输入目的地/景点" name="keywords"  value="<?php echo @$keywords?$keywords:''?>">
                    <input type="button" id="js-button" value="搜索"><i class="fa fa-search fa-lg"></i>
                </form>
            </div>
            <?php if(isset($site['extend_field_5'])):$keyword_list = explode(',',$site['extend_field_5']);?>
                <div class="hot-search">
                    <b>热门搜索:</b>
                    <?php foreach($keyword_list as $val):?>
                        <a href="<?php echo site_url('search/list-0-0-0-0-0-0-0-'.urlencode($val))?>"><?php echo $val;?></a>
                    <?php endforeach;?>
                 </div>
            <?php endif;?>
        </div>
        <div class="top-bar-tel">
            <?php if(@$site['site_service_phone']):?>
                <?php echo $site['site_service_phone'];?>
            <?php endif;?>
        </div>
    </div>
    <div class="nav-bar">
        <div class="navs">
            <?php if(isset($middle_nav)):?>
                <?php foreach($middle_nav as $key=>$val):?>
                    <div class="def-nav">
                        <a href="<?php echo $val['url'];?>"<?php if(strpos($val['url'],URLPRE)===false):?> rel="nofollow"<?php endif;?>><?php echo $val['nav_name'];?></a>
                        <?php if(strpos($val['url'],'bendiyou')!==false):?>
                        <div class="pulldown ">
                            <div class="content">
                                <a  href="<?php echo site_url('bendiyou/list_0_0_1_0_')?>">美食</a>
                                <a  href="<?php echo site_url('bendiyou/list_0_0_2_0_')?>"> 住宿</a>
                                <a  href="<?php echo site_url('bendiyou/list_0_0_3_0_')?>">出行</a>
                                <a  href="<?php echo site_url('bendiyou/list_0_0_6_0_')?>">景区</a>
                                <a  href="<?php echo site_url('bendiyou/list_0_0_4_0_')?>">购物</a>
                                <a  href="<?php echo site_url('bendiyou/list_0_0_5_0_')?>">娱乐</a>
                            </div>
                        </div>
                        <?php endif;?>
                        <?php if(strpos($val['url'],'gentuan')!==false):?>
                            <div class="pulldown ">
                                <div class="content">
                                    <a  href="<?php echo site_url('zhoubianyou')?>">周边游</a>
                                    <a href="<?php echo site_url('guoneiyou')?>"> 国内游</a>
                                    <a  href="<?php echo site_url('chujingyou')?>">出境游</a>
                                    <a  href="<?php echo site_url('zhutiyou')?>">主题游</a>
                                </div>
                            </div>
                        <?php endif;?>
                    </div>
                <?php endforeach;?>
            <?php endif;?>
            <div class="login-box">
                <a href="javascript:void(0)" onMouseOut="hideImg()"  onmouseover="showImg()"> <i class="fa fa-weixin fa-2x "></i> 微信我们</a>
                <div id="wximg">
                    <?php if(isset($site_wx_qr)):?>
                        <img height="180" width="180" src="<?php echo $site_wx_qr ;?>"  onerror="this.error=null;this.src='<?php echo URLPRE;?>static/public/images/nologo.jpg'" >
                    <?php endif;?>
                </div>
            </div>
        </div>
    </div>
    <div class="blank"></div>
</div>

<script type="text/javascript">
    $(function(){
        //搜索
        $('#js-button').click(function(){
            if($('input[name="keywords"]').val().length>0){
                 window.location.href = $('form[name="search_form"]').attr("action")+encodeURIComponent($('input[name="keywords"]').val());
            }else{
                 $('input[name="keywords"]').focus();
            }
            return false;
        });

        $(".title-down").hover(function(){
            $(this).find(".item-menu-down").addClass("hover");
            $(this).find(".item-menu-down-list").show();
        },function(){
            $(this).find(".item-menu-down-list").hide();
            $(this).find(".item-menu-down").removeClass("hover");
        })

        $(".location").hover(function(){
            $(this).find(".top-city-choice").show();
            $(this).find(".top-city-blank").show();
        },function(){
            $(this).find(".top-city-choice").hide();
            $(this).find(".top-city-blank").hide();
        })
    })
</script>